package cn.xinfei.xdecision.common.dao.datax.datainterface.v2;

import org.apache.ibatis.annotations.Param;

import cn.xinfei.xdecision.common.model.datax.datainterface.v2.VarInterfaceInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.Collection;
import java.util.List;

@Mapper
public interface VarInterfaceInfoMapper extends BaseMapper<VarInterfaceInfo> {
    Boolean selectIsChargeById(@Param("id") Integer id);

    List<VarInterfaceInfo> selectAllByIds(@Param("ids") Collection<Long> ids);

    List<Long> selectVirtualDataSourceIdsByIds(@Param("ids") Collection<Long> ids);

    List<String> selectTypesByIds(@Param("ids") Collection<Long> ids);

    int updateStatus(@Param(value = "id") Long id, @Param(value = "status") Integer status);


    List<VarInterfaceInfo> getInterfaceList(@Param("organId") Long organId);

}
